package Io;

import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class PW2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("pw2.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw=new BufferedWriter(osw);
        PrintWriter pw=new PrintWriter(bw);
        Scanner scan=new Scanner(System.in);
        while (true){
            String line=scan.nextLine();
            if ("exit".equals(line)){
                break;
            }
            pw.println(line);

        }
pw.close();

    }
}
